<template>
	<view class="box" :style="theme">
		<image mode="widthFix" :src="imgHost+'/ic_paysuccess.png'"></image>
		<text class="box_font">支付成功</text>
		<view class="box_btn">
			<view class="box_btn_hui" @click="jump('/pages/index/index','', 1)"><text>回到首页</text></view>
			<view class="box_btn_see" @click="goD"><text>查看订单</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: '',
				orderId: '',
				businessId: ''
			}
		},
		onLoad(ops) {
			this.type = ops.type
			this.orderId = ops.orderId
			this.businessId = ops.businessId
			// this.getMemberInformation()
		},
		methods: {
			jump(url, params, a) {
				this.$app.jump(url, params, a);
			},
			jump2(url, params, a) {
				this.$app.jump2(url, params, a);
			},
			jump3(url, params, a) {
				this.$app.jump3(url, params, a);
			},
			goD(){
				this.jump3('/pages/order/list?type=', 0)
				// if(this.type == 1) {
				// 	// this.jump('/pages/order/detail?id=', this.businessId)
				// 	this.jump('/pages/order/list?type=', 0)
				// } else if(this.type == 2) {
				// 	// this.jump('/pages/curriculum/orderDetail?orderId=', this.orderId)
				// 	this.jump('/pages/order/list?type=', 3)
				// } else if(this.type == 3) {
				// 	this.jump('/pages/order/list?type=', 1)
				// } else if(this.type == 4) {
				// 	this.jump('/pages/order/list?type=', 2)
				// } else if(this.type == 5) {
				// 	this.jump('/pages/order/list?type=', 4)
				// }  else if(this.type == 6) {
				// 	this.jump('/pages/member/myActivity')
				// }  else if(this.type == 8) {
				// 	this.jump3('/pages/member/myExchange')
				// }
			}

		}

	}
</script>


<style scoped lang="scss">
	.box {
		display: flex;
		align-items: center;
		flex-direction: column;
		margin-top: 120rpx;
	}

	.box image {
		width: 198rpx;
		// height: 220rpx;
	}

	.box_font {
		font-size: 34rpx;
		font-weight: 600;
		color: #222222;
		margin-top: 20rpx;
	}

	.box_btn {
		margin-top: 200rpx;
		display: flex;
		align-items: center;
	}

	.box_btn_hui {
		width: 260rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 50rpx;
		border: 1px solid #999999;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.box_btn_hui text {
		font-size: 30rpx;
		font-weight: 400;
		color: #666666;
	}

	.box_btn_see {
		width: 260rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 50rpx;
		border: 1px solid $color;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: 40rpx;
	}

	.box_btn_see text {
		font-size: 30rpx;
		font-weight: 400;
		color: $color;
	}
</style>
